import axios from 'axios';

let base = '/api';
let base_url;
if (process.env.NODE_ENV === 'development') {
    base_url = 'http://192.168.3.132:20097'
} else {
    base_url = 'http://192.168.3.132:20097'
}
// export const requestLogin = params => { return axios.post(`${base}/login`, params).then(res => res.data); };
//
// export const getUserList = params => { return axios.get(`${base}/user/list`, { params: params }); };
//
// export const getUserListPage = params => { return axios.get(`${base}/user/listpage`, { params: params }); };
//
// export const removeUser = params => { return axios.get(`${base}/user/remove`, { params: params }); };
//
// export const batchRemoveUser = params => { return axios.get(`${base}/user/batchremove`, { params: params }); };
//
// export const editUser = params => { return axios.get(`${base}/user/edit`, { params: params }); };
//
// export const addUser = params => { return axios.get(`${base}/user/add`, { params: params }); };

// 开始你的表演 会员管理列表
export const getMemberList = params => { return axios.get(`${base}/admin/member/list`, { params: params }) };
